package com.arpa;

import com.alicp.jetcache.anno.config.EnableCreateCacheAnnotation;
import com.alicp.jetcache.anno.config.EnableMethodCache;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * @author leo
 */
@EnableMethodCache(basePackages = {"com.arpa.wms", "com.arpa.oms"})
@EnableCreateCacheAnnotation
@SpringBootApplication
public class WmsApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        //初始化全部缓存
        System.setProperty("initAllCache", "no");
        System.setProperty("initUnitCache", "yes");
        System.setProperty("initGoodsUnitConversionCache", "yes");
        System.setProperty("initCustomerCache", "yes");
        System.setProperty("initGoodsTypeCache", "yes");
        System.setProperty("initGoodsCache", "yes");
        System.setProperty("initWarehouseCache", "yes");
        System.setProperty("initWarehouseSpaceCache", "yes");
        System.setProperty("initWarehouseShipmentCache", "yes");
        System.setProperty("initLocationCache", "yes");
        System.setProperty("initLocationBearTypeCache", "yes");
        System.setProperty("initBrandCache", "yes");
        System.setProperty("initBatchRuleCache", "yes");
        System.setProperty("initSupplierCache", "yes");
        System.setProperty("initInventoryStatusCache", "yes");
        System.setProperty("initUnpackRuleCache", "yes");
        System.setProperty("initCarrierCache", "yes");
        System.setProperty("initShopCache", "yes");
        SpringApplication.run(WmsApplication.class, args);
    }

}
